/**
 * 
 */
package net.cloudcodex.client.home.view.panel.campaign;

import java.util.Date;
import java.util.List;

import net.cloudcodex.client.home.view.HomeView.Message;
import net.cloudcodex.client.home.view.panel.AbstractInfoPanel;

/**
 * @author Daniel
 * 
 */
public class HomeCampaignInfoPanel extends AbstractInfoPanel {

	private List<String> campaignPlayers;
	private Date dateStartedCampaign;
	private Message message;

	
	
	
	public HomeCampaignInfoPanel() {
		
	}

	protected void initPanel() {
		this.add(getPanel(message.getStartedOn(),
				dateStartedCampaign.toString()));
		this.add(getPanel(message.getPlayers(),
				getListAsString(campaignPlayers)));
	}

	public void setDateStartedCampaign(Date date) {
		this.dateStartedCampaign = date;
	}

	public void setCampaignPlayers(List<String> campaignPlayers) {
		this.campaignPlayers = campaignPlayers;
	}

	public void setMessage(Message message) {
		this.message = message;

	}

}
